package com.colin.app.activity.view.imageview;

import com.colin.app.R;
import com.colin.app.activity.view.ViewContract;
import com.colin.app.activity.view.ViewPresenterImpl;
import com.colin.app.app.AppActivity;
import com.colin.app.bean.DemoBean;

public class ImageViewActivity extends AppActivity implements ViewContract.ViewView {
    private ViewContract.ViewPresenter mViewPresenter = null;

    @Override
    protected void onDestroy() {
        mViewPresenter.destroy();
        mViewPresenter = null;
        super.onDestroy();
    }

    @Override
    public void initPresenter() {
        DemoBean demoBean = getIntent().getExtras().getParcelable("clazz");
        mViewPresenter = new ViewPresenterImpl(this,this,demoBean);
    }


    @Override
    public int initViewLayoutID() {
        return R.layout.activity_image_view;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {
        mViewPresenter.setData();
    }
}
